package com.ruoyi.project.beautyflower.noticeRecord.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.beautyflower.noticeRecord.mapper.NoticeRecordMapper;
import com.ruoyi.project.beautyflower.noticeRecord.domain.NoticeRecord;
import com.ruoyi.project.beautyflower.noticeRecord.service.INoticeRecordService;
import com.ruoyi.common.support.Convert;

/**
 * 发送消息记录 服务层实现
 * 
 * @author lxs
 * @date 2018-10-22
 */
@Service
public class NoticeRecordServiceImpl implements INoticeRecordService 
{
	@Autowired
	private NoticeRecordMapper noticeRecordMapper;

	/**
     * 查询发送消息记录信息
     * 
     * @param id 发送消息记录ID
     * @return 发送消息记录信息
     */
    @Override
	public NoticeRecord selectNoticeRecordById(Integer id)
	{
	    return noticeRecordMapper.selectNoticeRecordById(id);
	}
	
	/**
     * 查询发送消息记录列表
     * 
     * @param noticeRecord 发送消息记录信息
     * @return 发送消息记录集合
     */
	@Override
	public List<NoticeRecord> selectNoticeRecordList(NoticeRecord noticeRecord)
	{
	    return noticeRecordMapper.selectNoticeRecordList(noticeRecord);
	}
	
    /**
     * 新增发送消息记录
     * 
     * @param noticeRecord 发送消息记录信息
     * @return 结果
     */
	@Override
	public int insertNoticeRecord(NoticeRecord noticeRecord)
	{
	    return noticeRecordMapper.insertNoticeRecord(noticeRecord);
	}
	
	/**
     * 修改发送消息记录
     * 
     * @param noticeRecord 发送消息记录信息
     * @return 结果
     */
	@Override
	public int updateNoticeRecord(NoticeRecord noticeRecord)
	{
	    return noticeRecordMapper.updateNoticeRecord(noticeRecord);
	}

	/**
     * 删除发送消息记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteNoticeRecordByIds(String ids)
	{
		return noticeRecordMapper.deleteNoticeRecordByIds(Convert.toStrArray(ids));
	}
	
}
